<html>
<head>
<meta charset="utf-8"> 

<script src="https://cdn.staticfile.net/jquery/1.10.2/jquery.min.js" >
</script>
<script>
$(document).ready(function(){
	$("#c").click(function(){
		var code = $("#code").val()
		var name = $("#name").val()
		var password = $("#password").val()
		$.get("api/user/reg?code="+code+"&name="+name+"&password="+password, {},
		function(data, status){
			alert('处理成功')
		}).fail(function(e) {
		  alert("处理失败,"+JSON.parse(e.responseText).Message);
		})
	});
});

</script>
</head>
<body>

<div style="margin:10px">登录编号 <input id='code'></input></div>
<div style="margin:10px">用户姓名 <input id='name'></input></div>
<div style="margin:10px">登录密码 <input id='password'></input></div>
<button id="c" >设置</button>

</body>

</html>